package com.gitee.huanminabc.utils_tools.security.service;

import com.gitee.huanminabc.utils_tools.security.param.LoginParam;
import com.gitee.huanminabc.utils_tools.security.vo.LoginUserVo;
import com.gitee.huanminabc.utils_tools.security.vo.TokenInfoVo;

public interface LoginService {
    /**
     * 登录
     */
    TokenInfoVo login(LoginParam loginParam) throws Exception;

    /**
     * 退出登录
     */
    boolean logout(String account);

    //刷新token
    String refreshToken(String refreshToken);
    //通过accessToken获取用户信息
    LoginUserVo getTokenToUser(String accessToken);
     //生成token,用于测试和第三方对接,这个接口等效于登录接口
    String createMockToken(String account,String appId,String appSecret) throws Exception;
}
